table of contents
        
      
      
    | GLUTCREATEMENU(3) | Library Functions Manual (local) | GLUTCREATEMENU(3) | 
NAME¶
glutCreateMenu —
    Create a new menu.
LIBRARY¶
OpenGLUT - menus
SYNOPSIS¶
#include
    <openglut.h>
int
  
  glutCreateMenu(void(
    *callback )( int value ));
PARAMETERS¶
callback
Client hook for the new menu.
DESCRIPTION¶
Create a menu with a callback bound to
callback,
and return the menu's integer id.
When the user makes a selection from this menu,
callback
is invoked with the parameter
value,
which comes from the (
label,
value)
pair that is defined with glutAddMenuEntry().